<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>BackStage</title>

  <!-- 连接插槽 -->
  {block name="frameset-link"}
  <link rel="stylesheet" href="__static__/index/css/common.css">
  <link rel="stylesheet" href="__static__/admin/css/nav.css">
  {/block}
</head>

<body>

  {include file='index/header'/}
  <div class="container">
    <div class="menu">
      <a href="{:url('admin/index/index')}">{$username}</a>
      <a href="{:url('admin/index/articles')}">Articles</a>
      <a href="{:url('admin/index/add_article')}">Add article</a>
      <a href="{:url('index/index/index')}">GO Front</a>
    </div>
    <!-- 主要内容 -->
    {block name="main"}
    {/block}
  </div>

  <!-- 底部插槽 -->
  {block name="frameset-footer"}
  {include file="index/footer" /}
  {/block}

  <!-- 连接插槽 -->
  {block name="frameset-script"}
  <script src="__static__/admin/js/nav.js"></script>
  {/block}
</body>

</html>